<html>
<head>
<title>Edit a record of hilite_index_help</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link media="all" href="/cms/css/cms.min.css" type="text/css" rel="stylesheet" /> 
<link rel="stylesheet" type="text/css" href="/cms/css/tag/token-input.css" />
<script  type="text/javascript" src="/cms/js/cms.1.1.min.js"></script>
<script type="text/javascript" src="/cms/js/tag/jquery.tokeninput.js"></script>
<script language="JavaScript" src="/cms/js/cleditor/jquery.cleditor.min.js"></script>
<!--change to auto add JS later-->
<script language="JavaScript" src="/cms/js/jquery.validate.js"></script>
<script language="JavaScript" src="/cms/js/autocomplete/textarea.js"></script>

<link media="all" href="/cms/js/jcrop/css/jquery.Jcrop.css" type="text/css" rel="stylesheet"> 
</head>

<body>
{#include file="$navigation"#}
<div style="float:right;" id="login"></div>
<script>
$(document).ready(function() {	

});	
  function validate_form(form){
	  if (validator.form())  form.submit(); else alert('Some fields has error. Please check and resubmit');
  }
</script>

<H1><span id="parent_key_label"></span>Edit a record of  Hilite index help</H1>
<form name="form_edit" id="form_edit" method="post" action="{#$self_url#}" enctype="multipart/form-data">	
<div class='tableWrapper' style="width:100%;margin:0;padding:0;">
  <div class='tableHeader' >

	<ul class="tableActions">
	
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_update'; form.submit();" type="button"></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>  
<li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 刪除 " onclick="form.action.value='del'; form.submit();" type="button"></li>
	</ul>

  <div class='clear'></div>
  <div class='corner left'></div>
  <div class='corner right'></div>
  </div>	
	
<table border="0" cellspacing='0' >
<tr id="tr_id"><td><B>id</B></td>
<td id="td_id">{#$edit_data.id#}</td></tr>
<tr id="tr_title"><td><B>標題</B></td>
<td id="td_title"><input type="text" id="field_title" name="title"  size="80" value="{#$edit_data.title#}"></td></tr>
<tr id="tr_body"><td><B>內容</B></td>
<td id="td_body"><textarea name="body" id="field_body" cols="60" rows="4">{#$edit_data.body#}</textarea></td></tr>
<tr id="tr_url"><td><B>網址</B> <img src="/cms/images/ico/info.gif" class="tips" title="page number:<BR/>1->新手入門<BR/>2->試用專員<BR/>3->體驗達人<BR/>4->常見問題" /></td>
<td id="td_url"><input type="text" id="field_url" name="url"  size="80" value="{#$edit_data.url#}"></td></tr>
<tr id="tr_photo"><td><B>photo</B></td>
<td id="td_photo">
  	<script type="text/javascript">
  	CMS.image_uplaod.show('{#$edit_data.photo_image1#}','{#$edit_data.photo_image2#}',
  	'{#$edit_data.photo_imagesize1#}','{#$edit_data.photo_imagesize2#}'); </script>
  	<BR/>
<input type="file" name="photo"> ( 支持：jpg,gif,jpeg,png)<label><input type="checkbox" name="photo_clear" value="1" />清除</label><br/><BR/>
<div id="photo_geometry"></div><SCRIPT type=text/javascript>
$(document).ready(function() {
$.jcrop_cms("photo_geometry",  
"{#$edit_data.photo_image2#}"+'?'+Math.floor(Math.random()*9999+1),  "{#$edit_data.photo_imagesize2#}",  //src image and size
"{#$edit_data.photo_imageparam1#}", "{#$edit_data.photo_imagesize1#}" , // current thumbnail size
"139x136",  // ps assign size
"photo_crop_param1",
"photo_thumbnailsize1", "0");
});</script></td></tr>
<tr id="tr_priority"><td><B>優先順序(大至小）</B></td>
<td id="td_priority"><input id="field_priority" type="text" name="priority" value="{#$edit_data.priority#}">&nbsp;&nbsp;數值越大，排列越前</td></tr>
<tr id="tr_addedby"><td><B>建立者</B></td>
<td id="td_addedby">{#$edit_data.addedby#}</td></tr>
<tr id="tr_modifiedby"><td><B>更新者</B></td>
<td id="td_modifiedby">{#$edit_data.modifiedby#}</td></tr>
<tr id="tr_approvedby"><td><B>審核者</B></td>
<td id="td_approvedby">{#$edit_data.approvedby#}</td></tr>
<tr id="tr_status"><td><B>上線狀態</B></td>
<td id="td_status">{#$edit_data.status#}</td></tr>
<tr id="tr_addtime"><td><B>建立時間</B></td>
<td id="td_addtime">{#$edit_data.addtime#}</td></tr>
<tr id="tr_lastmodify"><td><B>更新時間</B></td>
<td id="td_lastmodify">{#$edit_data.lastmodify#}</td></tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="hidden" name="id" value="{#$edit_data.id#}">
     	
    <input type="hidden" name="action" value="update"><input name="subaction" type="hidden">
	<ul class="tableActions">
    
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 儲存 " onclick="form.subaction.value='edit_after_update'; form.submit();" type="button"></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" type="submit" name="Submit" value=" 確定 "></li>
  <li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="dummy" value=" 取消 " onclick="javascript:window.location.href='{#$self_url#}/list'" type="button"></li>  
<li><input class="psbutton" onmouseover="this.className='psbuttonhover'" onmouseout="this.className='psbutton'" name="Submit" value=" 刪除 " onclick="form.action.value='del'; form.submit();" type="button"></li>
	</ul>
  </td>
  </tr>
</table>

</form> 

<script type="text/javascript">
$(function(){
  $(".tips").tipTip({defaultPosition: "right", edgeOffset: 10});
});
</script>

<!--POSTRUNJS-->
</body>
</html>
